<template>
  <div>
    <div class="wrapper2">
      <Row :gutter="16">
        <i-col span="7">
          <div class="img">
            <router-link :to="{path:'journalDetails',query:{id:data.id}}">
              <img :src="data.photo" alt="">
            </router-link>
          </div>
        </i-col>
        <i-col span="16" offset="1">
          <div class="details">
            <div>
              <p class="p1">
                <router-link :to="{path:'journalDetails',query:{id:data.id}}">{{data.cname}}</router-link>
              </p>
              <p class="p2">主办单位：{{data.sponsor}}</p>
              <p class="p2">期刊周期：{{data.publicationCycle}}</p>
              <p class="p2">国内刊号：{{data.cn}}</p>
              <ul>
                <li v-if="data.kernel =='北大核心'">
                  <Tooltip content="中文核心期刊" theme="light" placement="right-start">
                    <Tag type="border" color="warning">北大核心</Tag>
                  </Tooltip>
                </li>
                <li v-if="data.kernel =='CSTPCD'">
                  <Tooltip content="中国科技论文统计源期刊" theme="light" placement="right-start">
                    <Tag type="border" color="warning">CSTPCD</Tag>
                  </Tooltip>
                </li>
                <li v-if="data.kernel =='CSCD'">
                  <Tooltip content="中国科学引文数据库" theme="light" placement="right-start">
                    <Tag type="border" color="warning">CSCD</Tag>
                  </Tooltip>
                </li>
                <li v-if="data.kernel =='SCI'">
                  <Tooltip content="科学引文索引" theme="light" placement="right-start">
                    <Tag type="border" color="warning">SCI</Tag>
                  </Tooltip>
                </li>
              </ul>
            </div>
          </div>
        </i-col>
      </Row>
    </div>
  </div>
</template>

<script>
  export default {
    props: {
      data: {
        type: Object,
      },
    },
  }
</script>

<style scoped>
  .wrapper2 {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    height: 222px;
  }
  .wrapper2 .img {
    width: 150px;
    height: 200px;
  }
  .wrapper2 .img img, .wrapper2 .details ul li img {
    width: 100%;
    height: 100%;
  }
  .wrapper2 .details .p1 {
    padding: 10px 0;
  }
  .wrapper2 .details .p2 {
    padding: 5px 0;
    font-size: 15px;
    display: inline-block;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .wrapper2 .details .p1 a {
    font-size: 18px;
    color: #000;
  }
  .wrapper2 .details .p1 a:hover {
    color: #2d8cf0;
  }
  .wrapper2 .details ul {
    list-style: none;
    white-space: nowrap;
    float: left;
    /*padding-top: 10px;*/
  }
  .wrapper2 .details ul li {
    width: 48px;
    display: inline-block;
    white-space: nowrap;
  }
</style>
